package com.Iconcat.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CatNews对象", description="CatNews信息")
public class CatNews {
    @TableId(value = "n_id", type = IdType.AUTO)
    @ApiModelProperty(value = "新闻ID")
    private Integer nId;

    @ApiModelProperty(value = "新闻标题")
    private String nTitle;

    @ApiModelProperty(value = "新闻内容")
    private String nContent;

    @ApiModelProperty(value = "新闻作者")
    private String nAuthor;

    @ApiModelProperty(value = "发布日期")
    private String publishDate;

    @ApiModelProperty(value = "新闻分类")
    private String nCategory;

    @ApiModelProperty(value = "新闻标签")
    private String nTags;

    @ApiModelProperty(value = "新闻图片URL")
    private String imageUrl;

    @ApiModelProperty(value = "是否已发布")
    private Boolean isPublished;

    @ApiModelProperty(value = "创建时间")
     private LocalDateTime createdAt;
    @ApiModelProperty(value = "更新时间")
     private LocalDateTime updatedAt;

}
